<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			div{
				width: 180px;
				height: 240px;
				border: 3px solid #ccc;
				display: inline-block;
				margin-right: 20px;
				box-shadow: 6px 6px 3px rgba(0,0,0,0.6);
				overflow: hidden;	
				position: relative;			
			}
			div:first-child:hover img{
				transform: scale(1.5);
			}
			div:first-child img{
				transition: transform 1s;
			}
			div:last-child:hover img{
				transform: rotate(45deg);
			}
			div:last-child img{
				transition: transform 2s;
			}
			div:nth-child(2)>div{
				background-color: rgba(0,0,0,0.6);
				color: white;
				font-size: 18px;
				transition: transform 2s;
				position: relative;
				left: -3px;
			}
			div:nth-child(2):hover div{
				transform: translateY(-100%);
			}
		</style>
	</head>
	<body>
		<div>
			<img src="img/lion.jpg"/>
		</div>
		<div>
			<img src="img/lion.jpg"/>
			<div>这里是translate移动</div>
		</div>
		<div>
			<img src="img/lion.jpg"/>
		</div>
	</body>
</html>
